package com.dynamicProxy1;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BigStar implements Star{
    private String name;

    //唱歌  跳舞
    @Override
    public String sing(String name)
    {
        System.out.println(this.name + "正在唱" + name);
        return "谢谢";
    }

    @Override
    public void dance(String name)
    {
        System.out.println(this.name + "正在跳舞");
    }
}
